package com.four.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
//@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)//表头样式
//@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)//内容样式
public class Reg {
    @ColumnWidth(15)
    @ExcelProperty(value = "病历编号",index=0)
    private Integer regId;
    @ColumnWidth(15)
    @ExcelProperty(value = "患者姓名",index=1)
    private String regName;
    @ColumnWidth(15)
    @ExcelProperty(value = "患者性别",index=2)
    private String sex;
    @ColumnWidth(20)
    @ExcelProperty(value = "患者手机号",index=3)
    private String phonenumber;
    @ColumnWidth(20)
    @ExcelProperty(value = "身份证号",index=4)
    private String idcard;
    @ColumnWidth(15)
    @ExcelProperty(value ="挂号科室",index=5)
    private String sectionName;
    @ColumnWidth(15)
    @ExcelProperty(value ="医生姓名",index=6)
    private String adminName;
    @ColumnWidth(20)
    @ExcelProperty(value = "就诊日期",index=7)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date regDate;
    @ColumnWidth(15)
    @ExcelProperty(value ="主要病因",index=8)
    private String cases;
    @ColumnWidth(30)
    @ExcelProperty(value ="治疗意见",index=9)
    private String suggest;

    @ExcelIgnore
    private Integer suchedulingId;
    @ExcelIgnore
    private String status;
    @ExcelIgnore
    private Integer userId;
    @ExcelIgnore
    private Integer sectionId;
    @ExcelIgnore
    private Integer adminId;
    @ExcelIgnore
    private User user;
    @ExcelIgnore
    private Section section;
    @ExcelIgnore
    private Admin admin;

    public String getSectionName() {
        return sectionName;
    }

    public void setSectionName(String sectionName) {
        this.sectionName = sectionName;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Section getSection() {
        return section;
    }

    public void setSection(Section section) {
        this.section = section;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Integer getSuchedulingId() {
        return suchedulingId;
    }

    public void setSuchedulingId(Integer suchedulingId) {
        this.suchedulingId = suchedulingId;
    }

    public Integer getRegId() {
        return regId;
    }

    public void setRegId(Integer regId) {
        this.regId = regId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSectionId() {
        return sectionId;
    }

    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getRegDate() {
        return regDate;
    }

    public void setRegDate(Date regDate) {
        this.regDate = regDate;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    public String getRegName() {
        return regName;
    }

    public void setRegName(String regName) {
        this.regName = regName == null ? null : regName.trim();
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCases() {
        return cases;
    }

    public void setCases(String cases) {
        this.cases = cases == null ? null : cases.trim();
    }

    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest == null ? null : suggest.trim();
    }
}